package org.example.service;

import org.example.model.BaseModel;

import java.util.List;

public interface BaseService<T extends BaseModel> {

    List<T> getAll();

    T getOne(Long id);

    Long create(T entity);

    void update(T entity);

    void delete(Long id);
}